cmake_minimum_required(VERSION 2.6)
project(SMOOTHERNITY)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
    add_definitions(-pedantic-errors -Wall -Wextra -DCOMPILER_IS_GNU)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
    add_definitions(-W3 -DCOMPILER_IS_MSVC -D_CRT_SECURE_NO_WARNINGS)
    if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
        add_definitions(-MTd)
    else()
        add_definitions(-MT)
    endif()
endif()

subdirs(core)
subdirs(utilc)
subdirs(utilcpp)
subdirs(platform)
subdirs(physics)
